<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>宠物智能识别系统</title>
  <link rel="stylesheet" href="static/index/css/index.css">
  <link rel="shortcut icon" href="static/icon_img/tubiao.ico"/>
  <link rel="bookmark" href="dist/img/favicon.ico"/>
  <!-- Google Font: Source Sans Pro -->
  <link rel="stylesheet"
        href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome -->
  <!-- static/ -->
  <link rel="stylesheet" href="static/index/css/all.min.css">
  <!-- fullCalendar -->
  <link rel="stylesheet" href="static/index/css/main.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="static/index/css/adminlte.min.css">
  <!-- 消息提示下拉框的css-->
   <link rel="stylesheet" href="static/admin/css/admin_showdownbox.css">
  <!-- jQuery -->
  <script src="static/public/jquery/jquery.min.js"></script>
</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
      {% if request.args.get('name') == None %}
      <a href="login?page=querypagemsg" class="nav-link">登录
      </a>
      {% else %}
      <a href="#" id="userlogout">退出</a>
      <script>
      			  var userlogout = document.getElementById('userlogout');
      			  userlogout.onclick = function(){
      				 var flag=confirm('您确定退出吗?')
      				 if(flag == true){ location.href='/userlogout'}
      				 
      			  }
      </script>
      {% endif %}
        </a>
      </li>
    </ul>
	&nbsp;&nbsp;&nbsp;
	{% include 'speak_template.html' %}
	  {% include 'users/msgPoint_template.html' %}

	        <input type="hidden" value="{{msg}}" id="msg">    
	       
    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
      <!-- Navbar Search -->
      <li class="nav-item">
        <a class="nav-link" data-widget="navbar-search" href="#" role="button">
          <i class="fas fa-search"></i>
        </a>
      </li>

      <!-- Messages Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-comments"></i>
          <span class="badge badge-danger navbar-badge"></span>
        </a>
      </li>
      <!-- Notifications Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-bell"></i>
          <span class="badge badge-warning navbar-badge"></span>
        </a>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-widget="fullscreen" href="#" role="button">
          <i class="fas fa-expand-arrows-alt"></i>
        </a>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
          <i class="fas fa-th-large"></i>
        </a>
      </li>
    </ul>
  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container  这里搞了颜色渐变--> 
  <aside class="main-sidebar index-gradient elevation-4">
    <!-- Brand Logo -->
    <a href="/?name={{name}}" class="brand-link">
      <img src="static/icon_img/tubiao.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
           style="opacity: .8">
      <span class="brand-text font-weight-light">宠物智能识别系统</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
      <!-- Sidebar user panel (optional) -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        {% if name== None %}
        <div class="image">
          <img src="static/icon_img/default-150x150.png" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="login?page=index" class="d-block">未登录</a>
        </div>
        {% endif %}
        {% if name!= None  %}
        <div class="image">
          <!-- <img src="static/imgs/userpics/{{name}}.png" class="img-circle elevation-2" alt="User Image">  暂时不使用20231022-->
          <img src="http://127.0.0.1:5001/showprofileimg={{name}}" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="userCenter?name={{name}}" class="d-block">{{name}}</a>
        </div>
        {% endif %}
      </div>


      <!-- Sidebar Menu -->
      <nav class="mt-2" style="">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
          <li class="nav-header">基础服务</li>
          <li class="nav-item">
            <a href="querypagemsg?name={{name}}" class="nav-link">
              <i class="nav-icon fas fa-search"></i>
              <p class="index-font">
                宠物信息查询
              </p>
            </a>
          </li>
          <li class="nav-item">
            <a href="identify?name={{name}}" class="nav-link">
              <i class="nav-icon far fa-image"></i>
              <p class="index-font"> 宠物图片识别
              </p>
            </a>
          </li>
          <li class="nav-item">
            <a href="user_com?name={{name}}" class="nav-link">
              <i class="nav-icon fas fa-columns"></i>
              <p class="index-font">
                圈友交流
              </p>
            </a>
          </li>
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content 这里是显示宠物信息和图片部分-->
  <div class="content-wrapper">
    <section class="content-header">
		  <div class="card-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1>圈友交流</h1>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="/?name={{name}}">主页</a></li>
              <li class="breadcrumb-item active">圈友交流</li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
		  </div>
    </section>
 <section class="content" style="background: rgba(0, 0, 0, 0.0);" >
			  {% include 'addcon_template.html'%}
 </section>
 <br/>
	  <section class="content">
	    <div class="col-md-12">
	      <div class="card card-primary">
	      
		{% extends 'con_template.html' %}
	      {#% include 'msg_template.html' %#}
		 
	      </div>
	    </div>
	  </section>
	  
    </div>
  <!-- /.content-wrapper -->
  <!-- Control Sidebar -->
  <aside class="control-sidebar index-gradient">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
</div>
 </div>
<!-- ./wrapper -->


<!-- Bootstrap -->
<script src="static/public/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- jQuery UI -->
<script src="static/public/jquery/jquery-ui.min.js"></script>
<!-- AdminLTE App -->
<script src="static/index/js/adminlte.min.js"></script>
<!-- fullCalendar 2.2.5 -->
<script src="static/index/js/moment.min.js"></script>
<script src="static/index/js/main.js"></script>
<!-- AdminLTE for demo purposes -->
<!-- Page specific script -->
</body>
</html>